package com.huawei.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 元气小喵仙~
 * @since 2025-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("courses")
@ApiModel(value="Courses对象", description="")
public class Courses implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键 自动增长")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "课程名 非空")
    private String name;

    @ApiModelProperty(value = "课程描述 可为空")
    private String description;

    @ApiModelProperty(value = "课程创建时间")
    @TableField("createTime")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "课程信息更新时间")
    @TableField("updateTime")
    private LocalDateTime updatetime;


}
